package com.example.gyt.service;

import com.example.gyt.dao.LandLeaseMapper;
import com.example.gyt.dao.UserMapper;
import com.example.gyt.pojo.LandLease;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LandLeaseService {

    @Autowired
    private LandLeaseMapper landLeaseMapper;

    public int deleteByPrimaryKey(String landId){
        return landLeaseMapper.deleteByPrimaryKey(landId);
    }

    public int insertSelective(LandLease record){
        return landLeaseMapper.insertSelective(record);
    }

    public LandLease selectByPrimaryKey(String landId){
        return landLeaseMapper.selectByPrimaryKey(landId);
    }

    public int updateByPrimaryKeySelective(LandLease record){
        return landLeaseMapper.updateByPrimaryKeySelective(record);
    }

    public List<LandLease> getAllLandLeaseList(LandLease record){
        return landLeaseMapper.getAllLandLeaseList(record);
    }

    public int queryCountLike(LandLease record){
        return landLeaseMapper.queryCountLike(record);
    }
}
